import request from '@/util/request.js'

/**
 * @description 一键报灾
 * @param {Object} data
 */
export function addAndUpdateDisaster(data) {
	return request({
		url: '/sbbz/disaster/addAndUpdateDisaster',
		method: 'POST',
		data
	})
}
/**
 * @description 灾害类型
 * @param {Object} data
 */
export function getDisasterType(data) {
	return request({
		url: '/sbbz/disaster/getDisasterType',
		method: 'get',
		data
	})
}

/**
 * @description 三级城镇
 * @param data
 * @returns {Promise}
 */
export function getselectTreeApi(data) {
	return request({
		url: '/sbbz/area/selectTree',
		method: 'GET',
		data
	})
}